package org.example.myleet.p1184;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.distanceBetweenBusStops(new int[]{14}, 0, 0));
        Assert.isTrue(1 == solution.distanceBetweenBusStops(new int[]{1,2,3,4}, 0, 1));
        Assert.isTrue(3 == solution.distanceBetweenBusStops(new int[]{1,2,3,4}, 0, 2));
        Assert.isTrue(4 == solution.distanceBetweenBusStops(new int[]{1,2,3,4}, 0, 3));
        Assert.isTrue(28 == solution.distanceBetweenBusStops(new int[]{3,6,7,2,9,10,7,16,11}, 6, 2));
        Assert.isTrue(234 == solution.distanceBetweenBusStops(new int[]{6,47,48,31,10,27,46,33,52,33,38,25,32,45,36,3,0,33,22,53,8,13,18,1,44,41,14,5,38,25,48}, 22, 0));
    }
}
